package day4;

/**
 * @author oldliu
 * @since 1.0
 */
public class Driver {
    public String name;//姓名

    public Driver(String name) {
        this.name = name;
    }

    public void drive(Car c){
        System.out.println(name+"驾驶着价值为"+c.money+"的"+c.brand+"汽车，在大街上勾搭美女");
    }
    public void drive(Bus b){
        System.out.println(this.name+"开着"+b.series+"公交，从"+b.from+"到"+b.to+"!糊口啊");
    }
    public void drive(Taxi t){
        System.out.println(this.name+"开着出租给"+t.company+",计费是"+t.price+"元每公里，养家糊口");
    }
}
